#include "stdafx.h"
#include "base/basic/string_utils.h"

int HexToInt(const CString &strHex)
{
    CString strFixedHex = strHex;
    if(strFixedHex.Left(2).MakeLower() == _T("0x")) {
        strFixedHex = strFixedHex.Mid(2);
    }
    return (int)(LONG_PTR)_tcstoul(strFixedHex.GetBuffer(), NULL, 16);
}

__int64 HexToInt64(const CString &strHex)
{
    // Not implement
    return 0;
}

